package com.zy.cat.entity.dev.act.resp;


import java.util.Arrays;
import java.util.Date;
import java.util.List;

import org.apache.commons.lang3.StringUtils;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("天天抽奖活动信息")
public class CatDailyDrawListResp {
	
	@ApiModelProperty(value = "今日剩余开启抽奖次数", example = "5")
	private int surplusCount;
	
	@ApiModelProperty(value = "是否为第一次进入天天抽奖(0.不是、1.是首次进入)", example = "0")
	private int isFirst;
	
	private List<Prize> list;


	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	public static class Prize{
		@ApiModelProperty(value = "本轮抽奖ID", example = "18986866666")
		private Integer id;
		
		@ApiModelProperty(value = "奖品ID", example = "18986866666")
		private Integer prizeId;

		@ApiModelProperty(value = "奖品名称", example = "商品标题")
		private String prizeName = "";

		@ApiModelProperty(value = "商品价值", example = "商品价值")
		private String prizePrice = "";

		@ApiModelProperty(value = "商品主图", example = "505685856")
		private String mainPic = "";
		
		@ApiModelProperty(value = "奖品轮播图", example = "505685856")
		private String imgs = "";
	
		@ApiModelProperty(value = "商品详情图", example = "505685856")
		private String detailPics;
		
		@ApiModelProperty(value = "最多参与人数条件", example = "100")
		private long drawTotal;
		
		@ApiModelProperty(value = "抽奖状态(-1.本轮异常、0.未开奖、1.已开奖)", example = "0")
		private Integer drawStatus;
		
		@ApiModelProperty(value = "商品期数", example = "1")
		private int round;
		
		@ApiModelProperty(value = "已参与人数", example = "0")
		private Integer drawNum;
		
		@ApiModelProperty(value = "用户是否开启此抽奖(0.未开启、1.已开启)", example = "0")
		private Integer isStart;
		
		@ApiModelProperty(value = "用户是否中奖(0.未中奖、1.已中奖)", example = "0")
		private int isWinPrize;
		
		@ApiModelProperty(value = "订单状态(0.未中奖、1.中奖未填写收货信息、2.已填单未发货、3.已发货、4.奖品送达成功)", example = "0")
		private int orderStatus;
		
		/**
	     * 开奖时间
	     */
		@ApiModelProperty(value = "开奖时间", example = "21212451545")
		@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
	    private Date drawTime;
		
		@ApiModelProperty(value = "获奖者列表,未开奖时为空", example = "{}")
		private List<CatDailyDrawAwardeeResp> awardeeInfo;
	}
}
